package com.hackintosh.factory.method.farm;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/07
 * @modified By：
 * @version: 1.0
 */
public class AnimalFarmTest {

    public static void main(String[] args) {
        try {
            AnimalFarm animalFarm = (AnimalFarm) ReadXML2.getObject();
            Animal animal= animalFarm.newAnimal();
            animal.show();

        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
